package cn.gson.springboot.model.mapper;

import cn.gson.springboot.model.pojos.Opportunity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Mapper
@Component("oppMapper")
public interface OpportunityMapper {
    public List<Opportunity> selectEmpOpportunity(Integer deptId,Integer empId,Integer value,Integer num,Integer vague,String content);

    public List<Opportunity> selectCusOpportunity(Integer cusId);

    public List<Map<String,Object>> computeOppByEmp(Integer deptId,Integer empId);

    public List<Map<String,Object>> computeSource(Integer deptId,Integer empId);

    public List<Map<String,Object>> computeClassify(Integer deptId,Integer empId);

    public List<Map<String,Object>> computeFindDate(Integer deptId,Integer empId);

    public List<Map<String,Object>> computeSignDate(Integer deptId,Integer empId);

    public List<Map<String,Object>> computeStatus(Integer deptId,Integer empId);

    public List<Map<String,Object>> computeStage(Integer deptId,Integer empId);

    public List<Map<String,Object>> computeStageOther(Integer deptId,Integer empId);

    public List<Map<String,Object>> computeStageMin(Integer empId);

    public List<Map<String,Object>> computeStageMedium(Integer empId);

    public List<Map<String,Object>> computeStageMax();

    public List<Map<String,Object>> computePossibility(Integer deptId,Integer empId);
}
